package study.javabasic.communication.pipe;

import java.io.PipedInputStream;

/**
 * Created by zhangshuhan on 2019/3/21.
 */
public class ThreadB implements Runnable {

    ReadData readData;

    PipedInputStream in;

    public ThreadB(PipedInputStream in, ReadData readData) {
        this.in = in;
        this.readData = readData;
    }


    @Override
    public void run() {
        readData.readDate(in);
    }
}
